home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
pas_all.zip
/
TI579.ASC
< prev
next >
Wrap
Text File
|
1992-09-03
|
2KB
|
133 lines
PRODUCT : Turbo Pascal NUMBER : 579
VERSION : 6.0
OS : MS/PC DOS
DATE : September 3, 1992 PAGE : 1/2
TITLE : EDITORS.PAS 3,4,5,6 Entry Patch
The following patch fixes the problem of not being able to enter
numbers 3 through 6 into the editor of the EDITORS.PAS example
shipped with Turbo Pascal 6.0.
Open EDITORS.PAS in the TURBO editor and search for the EXISTING
code. Once that is found change the EXISTING code to the CHANGE
TO code. Save your changes and recompile EDITORS.PAS.
EXISTING: EXISTING:
LODSW var
OR BL,BL Key: Word;
JE @@2
CMP BL,DL CHANGE TO:
CHANGE TO: var
ShiftState: Byte absolute
LODSW $40:$17;
CMP BL,DL Key: Word;
-------------------------- --------------------------
EXISTING: EXISTING:
JE @@4 begin
@@2: CMP BH,DH Key := Event.KeyCode;
JE @@4
CHANGE TO:
CHANGE TO:
begin
JE @@4 if (ShiftState and $03 <> 0)
CMP BH,DH and (Event.ScanCode >= $47)
JE @@4 and (Event.ScanCode <= $51)
then
Event.CharCode := #0;
Key := Event.KeyCode;
PRODUCT : Turbo Pascal NUMBER : 579
VERSION : 6.0
OS : MS/PC DOS
DATE : September 3, 1992 PAGE : 2/2
TITLE : EDITORS.PAS 3,4,5,6 Entry Patch
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.